using System;
using System.Data;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;
using Example.Model;

namespace Example.WebService
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    public class Service1 : System.Web.Services.WebService, IHelloWorld
    {
        #region IHelloWorld Members

        [WebMethod]
        public string SayHello(string name)
        {
            return "Hello " + name ?? "World!";
        }

        #endregion
    }
}
